#pragma once
#include "Bin.h"
#include "String.h"

class File{
public:
	File	(void){handle=INVALID_HANDLE_VALUE;};
	File	(String* name,uint=GENERIC_READ,uint=OPEN_EXISTING);
	File	(TCHAR* name,uint=GENERIC_READ,uint=OPEN_EXISTING);
	~File	(void);

	Bin*	get		(void);
	void	write	(Bin*);

protected:
	HANDLE	handle;
	void	create	(TCHAR*,uint,uint);
};